package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.LiveArticle;
import com.ruoyi.system.mapper.LiveArticleMapper;
import com.ruoyi.system.service.LiveArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

@Service
public class LiveArticleServiceImpl implements LiveArticleService {
    @Autowired
    private LiveArticleMapper liveArticleMapper;
    @Override
    public List<LiveArticle> selectLiveArticle(LiveArticle liveArticle) {
        return liveArticleMapper.selectLiveArticle(liveArticle);
    }

    @Override
    public int deleteLiveArticleById(Long aid,Long uid) {
        return liveArticleMapper.deleteLiveArticleById(aid,uid);
    }

    @Override
    public int updateLiveArticleById(LiveArticle liveArticle) {
        return liveArticleMapper.updateLiveArticleById(liveArticle);
    }

    @Override
    public int insertLiveArticle(LiveArticle liveArticle) {
        return liveArticleMapper.insertLiveArticle(liveArticle);
    }

    @Override
    public boolean saveBatch(Collection<LiveArticle> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<LiveArticle> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<LiveArticle> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(LiveArticle entity) {
        return false;
    }

    @Override
    public LiveArticle getOne(Wrapper<LiveArticle> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<LiveArticle> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<LiveArticle> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<LiveArticle> getBaseMapper() {
        return null;
    }

    @Override
    public Class<LiveArticle> getEntityClass() {
        return null;
    }
}
